package com.liik.bomb.screen.level;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

import com.liik.game.mvc.object.Menu.Item;
import com.liik.game.mvc.simple.SimpleGameRenderer;

public class LevelChooserRenderer extends SimpleGameRenderer {
	
	private Paint menuBGColor, menuColor;

	public LevelChooserRenderer() {
		menuBGColor = new Paint();
		menuBGColor.setARGB(90, 100, 0, 0);
		menuColor = new Paint();
		menuColor.setARGB(255, 255, 255, 0);
	}
	
	@Override
	protected void renderBackgroundImage(Canvas canvas, float width, float height) {
		canvas.drawColor(Color.BLUE);
	}

	@Override
	protected void renderMenuItem(Item item, Canvas canvas) {
		canvas.drawRect(item.region.x, item.region.y, item.region.x + item.region.width, item.region.y + item.region.height, menuBGColor);
		canvas.drawText(item.caption, item.region.x + 2, item.region.y + item.region.height / 2 , menuColor);		
	}

	@Override
	public void setContext(Context context) {
		// TODO Auto-generated method stub
		
	}


}
